package com.javaweb.secondhand_trading.service;

import com.javaweb.secondhand_trading.Dto.OrderDto;
import com.javaweb.secondhand_trading.entity.Order;

import java.util.List;

public interface OrderService {
    int createOrder(Order order);

    int updateOrderStatus(Integer orderId, String status);

    int deleteOrder(Integer orderId);

    OrderDto getOrderDetail(Integer orderId);

    List<Order> getBuyerOrders(Integer buyerId);

    List<Order> getSellerOrders(Integer sellerId);
}
